import { IsNotEmpty, MinLength } from "class-validator";
export class LoginUserDto {
  @IsNotEmpty({ message: "帐号必填" })
  @MinLength(6, { message: "帐号长度不能少于6位" })
  readonly account: string;

  @IsNotEmpty({ message: "密码必填" })
  @MinLength(6, { message: "密码长度不能少于6位" })
  readonly pwd: string;
}
